package com.yneusoft.dao.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("`department`")
public class Department implements Serializable {
    /**
     * 自增aid
     */
    @TableId(type = IdType.AUTO)
    private Integer aid;

    /**
     * 部门编码
     */
    @TableField(fill = FieldFill.INSERT)
    private String code;

    /**
     * 部门名
     */
    private String name;

    /**
     * 部门状态id
     */
    private Integer stateId;

    /**
     * 状态名称
     */
    private String stateName;

    /**
     * 父部门id
     */
    private Integer fatherAid;

    /**
     * 部门等级
     */
    private Integer level;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
